package com.huangliusong.service;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.huangliusong.dataobject.OrderMaster;

public interface OrderService {

	/**
	 * 创建订单
	 */
	OrderMaster create(OrderMaster orderMaster);

	/**
	 * 查询单个订单
	 */
	OrderMaster findOne(String orderId);

	/**
	 * 查询订单列表
	 */
	Page<OrderMaster> findList(String openId, Pageable pageable);

	/**
	 * 取消订单
	 */
	OrderMaster cancel(OrderMaster orderMaster);

	/**
	 * 完结订单
	 */
	OrderMaster finish(OrderMaster orderMaster);

	/**
	 * 支付订单
	 */
	OrderMaster paid(OrderMaster orderMaster);
}
